package com.groupseven.happycampus.mapper;

import com.groupseven.happycampus.common.bo.BookBo;
import com.groupseven.happycampus.common.pojo.Book;
import com.groupseven.happycampus.common.vo.AuthorBarVo;
import com.groupseven.happycampus.common.vo.BookVo;
import com.groupseven.happycampus.common.vo.SpeciesPieVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BookMapper {


    List<Book> bookList(Map<String, String> params);

    Book selectBookById(@Param("id") Integer id);

    int deleteAll(@Param("idstr") String idstr);

    int updateBook(Book book);

    int addBook(Book book);

    List<BookBo> bookExcelData(Book book);

    int addBooks(List<Book> list);

    List<AuthorBarVo> selectByAuthorBar();

    List<SpeciesPieVo> selectBySpeciesPie();

    String selectGroupName(@Param("group_id")String group_id);

    List<BookVo> bookGroup();

}
